
class ajax{
    get(){
        return $.ajax({
            url:'/apa/ajax/movieOnInfoList?token='
        })
    }
    coming(arg){
        return $.ajax({
            url:`/apa/ajax/moreComingList?token=&movieIds=${arg}`
        })
    }

    detial(id){
        return $.ajax({
            url:`/apa/ajax/detailmovie?movieId=${id}`
        })

    }
   
    expected(cityId){
        return $.ajax({
            url:`/apa/ajax/mostExpected?ci=${cityId}&limit=10&offset=0&token=`
        })

    }

    wantsee(cityId){
        return $.ajax({
            url:`/apa/ajax/comingList?ci=${cityId}&token=&limit=10`
        })
    }

    // detialcinema(){
    //     return $.ajax({
    //         url:'/apa/ajax/filterCinemas?movieId=503342&day=2019-10-18'
    //     })
    // }

    detialcinema(data){
        return $.ajax({
            type:"POST",
            url:'/apa/ajax/movie?forceUpdate=1571408427713',
            data

        })
    }

    cinemalist(day,cityId){
        return $.ajax({
            url:`/apa/ajax/cinemaList?day=${day}&offset=0&limit=20&districtId=-1&lineId=-1&hallType=-1&brandId=-1&serviceId=-1&areaId=-1&stationId=-1&item=&updateShowDay=true&reqId=1571452936209&cityId=${cityId}`,
       

        }) 
    }

    search(kw){
        return $.ajax({
            url:`/apa/ajax/search?kw=${kw}&cityId=1&stype=2`,           
        }) 
    }

    choosequ(cityId){
        return $.ajax({
            url:`/apa/ajax/filterCinemas?ci=${cityId}`,           
        }) 
    }

    choosecinema(day,areaId,cityId){
        return $.ajax({
            url:`/apa/ajax/cinemaList?day=${day}&offset=0&limit=20&districtId=14&lineId=-1&hallType=-1&brandId=-1&serviceId=-1&areaId=${areaId}&stationId=-1&item=&updateShowDay=false&reqId=1571542803985&cityId=${cityId}`,           
        }) 
    }

    choosebrands(day,brandsId,hallId,serviceId,cityId){
        return $.ajax({
            url:`/apa/ajax/cinemaList?day=${day}&offset=0&limit=20&districtId=-1&lineId=-1&hallType=${hallId}&brandId=${brandsId}&serviceId=${serviceId}&areaId=-1&stationId=-1&item=&updateShowDay=false&reqId=1571550142722&cityId=${cityId}`,           
        })    
    }
     
     getcity(){
        return $.ajax({
            url:'/apa/dianying/cities.json',           
        })  

     }
}
export default new ajax()

